<html>
  <html>
    <link type="text/css" rel="stylesheet" href="/style/main.css" />
  </html>
  <body>

  <div class="admin">
    <div>
	    <a href="{{ url }}">{{ url_linktext }}</a>
		<hr/>
		
	    <form action="/admin/addQuote" method="post">
	      <table class="entry">
	        <tr><td>Quote</td><td><input name="text" size="100"/></tr>
	        <tr><td>Author First Name</td><td><input name="firstName" size="100"/></tr>
	        <tr><td>Author Last Name</td><td><input name="lastName" size="100"/></tr>
	        <tr><td>Tags (each separated by space)</td><td><input name="tags" size="100"/></tr>
	      	<tr><td><input type="submit" value="Add Quote"></td><td>&nbsp;</td>
	      </table>
	      <br/>
	      Multiple quotes can be entered one per line<br/>
	      Format is:Quote|First Name|Last Name|Tag|Tag|Tag...<br/>
	      <textarea name="bulkQuotes" rows="6" cols="140"></textarea>
	      <input type="submit" value="Add Quotes">
	    </form>
		<hr/>
	</div>
	<div>
	    <form action="/admin/deleteQuote" method="post">
	    <input id="quoteKey" type="hidden" name="quoteKey" value="">
		<table class="quote" cellpadding="0" cellspacing="0" border="0">
		  <tr>
	        <th>quote.text</td>
	        <th>quote.first_name</td>
	        <th>quote.last_name</td>
	        <th>quote.tags</td>
	        <th>quote.randomness</td>
	        <th>&nbsp;</td>
	      </tr>
	    {% for quote in quotes %}
	      <tr>
	        <td>{{ quote.text|default:"&nbsp;" }}</td>
	        <td>{{ quote.first_name|default:"&nbsp;" }}</td>
	        <td>{{ quote.last_name|default:"&nbsp;" }}</td>
	        <td>{{ quote.tags|default:"&nbsp;" }}</td>
	        <td>{{ quote.randomness|default:"&nbsp;" }}</td>
	        <td><input type="submit" value="Delete Quote" onclick="document.getElementById('quoteKey').value='{{ quote.key }}';"></td>
	      </tr>
	    {% endfor %}
		</table>
		</form>
	</div>
  </div>
  
  </body>
</html>
